package dj.utils;

import java.util.HashMap;
import java.util.Map;

public class TableNote {

	public static final Map<String, String> tableMap = new HashMap<String, String>();

	public static final Map<String, Map<String, String>> columnMap = new HashMap<String, Map<String, String>>();

	public static void initTranslationMap() {
		tableMap.put("company_report", "企业数据报表");
		Map<String, String> company_reportMap = new HashMap<String, String>();
		company_reportMap.put("id", "id");
		company_reportMap.put("createDate", "创建日期");
		company_reportMap.put("dept", "企业名称");
		company_reportMap.put("status", "状态");
		company_reportMap.put("submitTime", "最好修改时间");
		company_reportMap.put("startDate", "开始日期");
		company_reportMap.put("endDate", "结束日期");
		columnMap.put("company_report", company_reportMap);

		// tableMap.put("friend", "好友");
		// Map<String, String> friendMap = new HashMap<String, String>();
		// friendMap.put("id", "id");
		// friendMap.put("friendid", "好友用户id");
		// friendMap.put("groupid", "组id");
		// friendMap.put("userid", "用户id");
		// columnMap.put("friend", friendMap);

		// tableMap.put("friend_extend", "好友扩展属性");
		// Map<String, String> friend_extendMap = new HashMap<String, String>();
		// friend_extendMap.put("id", "id");
		// friend_extendMap.put("friendid", "所属好友id");
		// friend_extendMap.put("remark", "备注");
		// friend_extendMap.put("remarkName", "备注名称");
		// columnMap.put("friend_extend", friend_extendMap);

		// tableMap.put("friend_group", "好友组");
		// Map<String, String> friend_groupMap = new HashMap<String, String>();
		// friend_groupMap.put("id", "id");
		// friend_groupMap.put("groupname", "组名称");
		// friend_groupMap.put("userid", "用户id");
		// columnMap.put("friend_group", friend_groupMap);

		tableMap.put("menu", "菜单");
		Map<String, String> menuMap = new HashMap<String, String>();
		menuMap.put("id", "id");
		menuMap.put("pid", "父id");
		menuMap.put("name", "菜单名称");
		menuMap.put("defaultMenu", "默认用户类型");
		menuMap.put("url", "url");
		columnMap.put("menu", menuMap);

		tableMap.put("menu_auth", "菜单权限");
		Map<String, String> menu_authMap = new HashMap<String, String>();
		menu_authMap.put("id", "id");
		menu_authMap.put("menuid", "菜单id");
		menu_authMap.put("userid", "用户id/角色id");
		menu_authMap.put("type", "类型");
		columnMap.put("menu_auth", menu_authMap);

		tableMap.put("sms_status", "短信状态");
		Map<String, String> sms_statusMap = new HashMap<String, String>();
		sms_statusMap.put("id", "id");
		sms_statusMap.put("reportid", "企业数据报表id");
		sms_statusMap.put("companyid", "企业id");
		sms_statusMap.put("sendTime", "发送时间");
		sms_statusMap.put("phone", "电话号码");
		sms_statusMap.put("systemNum", "系统号码");
		sms_statusMap.put("message", "消息");
		sms_statusMap.put("type", "类型");
		columnMap.put("sms_status", sms_statusMap);

		tableMap.put("sys_role_members", "角色成员");
		Map<String, String> sys_role_membersMap = new HashMap<String, String>();
		sys_role_membersMap.put("id", "id");
		sys_role_membersMap.put("roleid", "角色id");
		sys_role_membersMap.put("memberid", "成员id");
		sys_role_membersMap.put("type", "成员类型");
		columnMap.put("sys_role_members", sys_role_membersMap);

		tableMap.put("sys_roles", "角色");
		Map<String, String> sys_rolesMap = new HashMap<String, String>();
		sys_rolesMap.put("id", "id");
		sys_rolesMap.put("roleName", "角色名称");
		columnMap.put("sys_roles", sys_rolesMap);

		tableMap.put("tuser", "用户");
		Map<String, String> tuserMap = new HashMap<String, String>();
		tuserMap.put("id", "id");
		tuserMap.put("createDate", "创建时间");
		tuserMap.put("displayName", "显示名称");
		tuserMap.put("name", "用户名");
		tuserMap.put("systemNum", "系统号码");
		tuserMap.put("userState", "用户状态");
		tuserMap.put("userType", "用户类型");
		tuserMap.put("parentid", "所属用户");
		columnMap.put("tuser", tuserMap);

		tableMap.put("user_extend", "用户扩展属性");
		Map<String, String> user_extendMap = new HashMap<String, String>();
		user_extendMap.put("id", "id");
		user_extendMap.put("userid", "所属用户id");
		user_extendMap.put("addr", "地址");
		user_extendMap.put("email", "email");
		user_extendMap.put("phone", "电话号码");
		columnMap.put("user_extend", user_extendMap);

		// Map<String, String> talk_contextMap = new HashMap<String, String>();
		// talk_contextMap.put("id", "id");
		// talk_contextMap.put("isRead", "是否已读");
		// talk_contextMap.put("msg", "消息");
		// talk_contextMap.put("sendTime", "发送时间");
		// talk_contextMap.put("sendUserid", "发送人id");
		// talk_contextMap.put("receiveUserid", "接收人id");
		// columnMap.put("talk_context", talk_contextMap);

	}
}
